# 1-Dars
print(' \n1-Dars -------------------------')

# 1-Sharx

'''
2-Sharx
'''

"""
3-Sharx
"""

print(529/28)
print('1-string')
print("2-string")

# 5-Dars
print(' \n5-Dars -------------------------')

print("Qo\'shish", 2+2)

print("Ayirish", 545-54)

print("Bo'lish", 5959/65)

print("Qo\'paytirish", 666*544)

print("Sonning butun qismini chiqarish", 5959//65)

print("Sonning qoldiq qismini chiqarish", 5959%65)

print("Sonning darajaga ko'tarish", 10000000**100)

# 6-Dars
print(' \n6-Dars ------------------------------------ ')

x = 10 #int
y = 5.2 #flot

print(type(x))
print(type(y))

#constanta o'zgarmaydigan raqam
#Konstanta katta xarflar bilan yoziladi

C = 65
print(x, C)

x = 22
print(x)

# 7-Dars
print(' \n 7-Dars ----------------------------')

test = None
print(test)
test = 123
print(test)

x = 1; y = 5
print(x, y)

# bool
my_rost = True; 
my_yolgon = False; 

print(type(my_rost)) 
print(type(my_yolgon))

# str() int() float() bool()

x = 5.2
print(x, type(x))
x = int(x)
print(x, type(x))
x = str(x)
print(x, type(x))
x = bool(x)
print(x, type(x))
x = None 
print(x, type(x))

# 8-Dars
print(' 8-Dars --------------------------------------------')

words = "Hello,  \"test\" 'world'!"
words1 = 'hjtrp "yugk" \'unnhnui\' \'huhub\''
print(words)
print(words1)
words2 = 'uugtt \
kgfiugihuj \
kjlbgohoi'
print(words2)
words3 = 'ufhku\nugfg\nhkgh u'
print(words3)
words4 = ''' hgfdsdtrfyguh
fdtfry

gu uyuftyuft gtiy
uyguiu'''
print(words4)
words5 = '''\
lgfgojh
gilgoiugo 

lgjbgj; ;lkhl\
'''
print('words5')

# 9-Dars
print('\n 9-Dars ------------------------------------------')

x = r"home\ubuntu\Documents\Python.\Ogabek_Abdumuradov\Python\Takrorlash.py"
print(x) 

s = 'Py' 'thon'
print(s)

s1 = 'Salom '
s2 = 'dunyo!'
s3 = s1 + s2
print(s3)

ism = 'Doston Qo\'ziboyev'
yosh = 15
print('Mening ismim ' + ism + '. Yoshim ' + str(yosh) + ' da')

# biror so'zni ko'paytirish yani so'zni qayta yozaveradi
print('so\'z' * 6)

x = 'salom dunyo!'
print(x[-8])

print(x[2:5] + x[6:8])
print(x[0:9:2])
print(x[::-3])

# 10-Dars
print('\n 10-Dars --------------------------------------')

s = 'Salom, Dunyo'

print(len(s))
print(s.capitalize())
s2 = s.capitalize()
print(s, s2)
print(s.center(20)) 
print(s.center(20, '-'))
print(s.count('l'))
print(s.count('o'))
print(s.count('l', 0, 4))
print(s.find('m'))
print(s.index('o'))
print(s.replace('l', 't'))
print(s.split(','))
print(s.isdigit())
s = 'gmdmgjmj'
print(s.isalpha())

# 11-Dars
print('\n 11-Dars -------------------------------------')

ism = 'Doston'
yosh = 15
yil = 2007
oy = "Mart"
kun = 15
print('Mening ismim ' +ism + '. Salom, men ' + str(yosh) + ' yoshdaman.')
print('Men %(yil)d yil %(kun)d - %(oy)s da tug`ilganman' %{'yil': yil, 'kun': kun, 'oy': oy})
print('Mening ismim %s. Men %d yoshdaman.' %(ism, yosh))
print('Mening ismim %s. Men %d yoshdaman.' %('Husan', yosh))
print('Narsa: %s narxi: %0.2f so`m.' %('daftar', 12000))
print('Mening ismim {}. Men {} yoshdaman.' .format(ism, yosh))
print('Mening ismim {0}. Men {0} {1} yoshdaman.' .format(ism, yosh))
print('Mening ismim {ism}. Men {yosh} yoshdaman.' .format(ism=ism, yosh=yosh))
print(f'Mening ismim {ism}. Yoshim {yosh} da. Endigi yili {yosh + 1} yoshda bo`laman.')
print('5 + 2 = {}' .format(5 + 2))
print(f'5 + 2 = {5 + 2}')

# 12-Dars
print('\n 12-Dars -----------------------------------------------')

print(3 == 3)
print(3 < 4)
print(3 > 2)
print(5 < 4)
print(9 > 10)
x = 0
if x:
    print('x rost')
else:
    print('x yolg`on')
if 0:            
    print('1 rost')
else:
    print('0 yolg`on')


lampa = input('Svitaforning rangini kiriting: ')

if lampa == 'qizil':
    print('svitaforda qizil')
elif lampa == 'yashil':
    print('svitaforda yashil')
elif lampa == 'sariq':
    print('svitaforda sariq')
else:
    print('bunaqa rang yo`q')

yosh = int(input('Yoshingiz nechada?  '))
if yosh >= 11:
    print('Sizni o`qishga qabul qilamiz!')
else:
    print(f'Sur bo`ttan! Yoshing {yosh} da.\
           \n {11-yosh} yildan keyin kelasan.')
'''
a = 10
b = 5
print("a | b =", a | b)
'''
vaqt = int(input('Vaqtni kiriting: '))
if vaqt < 12 or vaqt > 13:
    print('Xush kelibsiz!')
else:
    print('Yopiq')
    
